API Reference > OdGe Classes > OdGeVector2d Class > OdGeVector2d Operators > [] Operator > OdGeVector2d::[] Operator (unsigned int)
OdGeVector2d::[] Operator (unsigned int)
Syntax
C++
double operator [](unsigned int i) const;
Parameters 
Description 
unsigned int i 
[in] Index of coordinate. 

Returns the ith coordinate of this vector. 

 

  • 0 returns the X-coordinate.
  • 1 returns the Y-coordinate.

Copyright © 2002–2020. Open Design Alliance. All rights reserved.